﻿//创建面型的太阳花表情
package org.summerTree.graphics
{

	import flash.display.Sprite;
	import flash.events.*;

	public class Face extends Sprite
	{
		public function Face()
		{
			
		}
		
		public function CreatFace(radius:Number):void
		{
			this.graphics.beginFill(0x000000,1);
			this.graphics.drawCircle(radius/3,-radius/8,radius*0.05);
			this.graphics.endFill();
			
			this.graphics.beginFill(0x000000,1);
			this.graphics.drawCircle(-radius/3,-radius/8,radius*0.05);
			this.graphics.endFill();
			
			this.graphics.moveTo(radius/2,-radius/5);
			this.graphics.lineTo(radius/8,-radius/5);
			
			this.graphics.moveTo(-radius/2,-radius/5);
			this.graphics.lineTo(-radius/8,-radius/5);
			
			//嘴巴
			this.graphics.moveTo(-radius/3,radius/2);
			this.graphics.lineTo(radius/3,radius/2);
					
		}
		
		
	}
}